Skip to content

uts: add ProxyManager and ProxySession for integration tests#1210

Draft
ttypic wants to merge 12 commits into
AIT-767/live-object-ground-workfrom
AIT-767/proxy-support
Draft

uts: add ProxyManager and ProxySession for integration tests#1210
ttypic wants to merge 12 commits into
AIT-767/live-object-ground-workfrom
AIT-767/proxy-support

Conversation

@ttypic
Copy link
Copy Markdown
Contributor

@ttypic ttypic commented May 21, 2026

  • Introduced ProxyManager to manage the uts-proxy binary lifecycle, including downloading, verification, and process control.
  • Added ProxySession for managing proxy sessions with rules, actions, event logging, and cleanup.
  • Included KDoc documentation for clear usage guidelines in integration tests.

ttypic added 12 commits May 14, 2026 23:05
- Added `MockHttpClient`, `MockHttpEngine`, and `MockWebSocketEngineFactory` to simulate network interactions.
- Extended `DebugOptions` for customizable engine injection.
- Updated `HttpCore` and `WebSocketTransport` to support mock engines in debug mode.
…ge handling

- Added `MockWebSocket` and `MockEvent` to capture WebSocket connection attempts, messages, and error scenarios.
- Added connection lifecycle events (`ConnectionEstablished`, `ConnectionRefused`, etc.) for enhanced testing.
- Updated `MockWebSocketEngineFactory` and related components to support event tracking and simulation.
- Added `Clock` interface and concrete implementations (`SystemClock` and `FakeClock`) for unified time management.
- Refactored classes (`Auth`, `Presence`, `Hosts`, `WebSocketTransport`, etc.) to use `Clock` instead of direct system calls.
- Enabled mockable time-based operations for improved testability.
- Updated `DebugOptions` to support custom clocks in debug mode.
…in tests

- Introduced a new skill for converting UTS pseudocode specs into runnable Kotlin tests.
- Included detailed translation rules for pseudocode to Kotlin, mock setup, and assertions.
- Added file templates and steps for compilation, testing, and handling deviations.
- Enhanced developer workflow for UTS test authoring.
…ssage decoding

- Added support for inspecting outgoing WebSocket frames (`MessageFromClient` events) in `MockWebSocket`.
- Enhanced `ClientOptionsBuilder` to set `useBinaryProtocol = false` by default for JSON text frame testing.
- Updated `ConnectionRecoveryTest` to assert on outgoing ATTACH messages.
…onnections

- Added `queryParams` field and `parseQueryString` utility for `PendingConnection` implementations.
- Updated `MockWebSocketEngineFactory` and `MockHttpEngine` to parse and pass query parameters.
- Enhanced connection recovery tests with assertions on query parameters.
- Added KDoc comments to `FakeClock`, `MockHttpClient`, and `MockWebSocket` explaining their purpose and usage.
… lifecycle management

- Introduced `ProxyManager` to manage the `uts-proxy` binary lifecycle, including downloading, verification, and process control.
- Added `ProxySession` for managing proxy sessions with rules, actions, event logging, and cleanup.
- Included KDoc documentation for clear usage guidelines in integration tests.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 21, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 11a57a6b-d66a-4ba3-b324-50fa577919f1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch AIT-767/proxy-support

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ttypic ttypic changed the title uts: add ProxyManager and ProxySession for integration test proxy… uts: add ProxyManager and ProxySession for integration tests May 21, 2026
@ttypic ttypic force-pushed the AIT-767/live-object-ground-work branch 6 times, most recently from ce07a09 to 9322674 Compare May 29, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant